/*
 * $Id: AbstractCfgTaskClassMap.java,v 1.4 2009/07/24 18:27:41 oliver Exp $
 *
 * Copyright (C) 2006 General Electric Company. All Rights Reserved.
 *
 * This software is the confidential and proprietary information of the General
 * Electric Company (GE). You shall not disclose this software and shall use it
 * only in accordance with the terms of the license agreement you entered into
 * with GE.
 *
 * GE MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
 * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
 * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR
 * NON-INFRINGEMENT. GE SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE
 * AS A RESULT OF USING, MODIFYING, OR DISTRIBUTING THIS SOFTWARE OR ITS
 * DERIVATIVES.
 */

/*
 * WARNING: DO NOT EDIT THIS FILE. This is a generated file that is synchronized
 * by MyEclipse Hibernate tool integration.
 *
 * Created Mon Jan 19 17:03:25 CST 2009 by MyEclipse Hibernate Tool.
 */
package com.ge.healthcare.autosc.common.database.pojo;

import java.io.Serializable;

/**
 * A class that represents a row in the CFG_TASK_CLASS_MAP table. You can
 * customize the behavior of this class by editing the class, {@link
 * CfgTaskClassMap()}. WARNING: DO NOT EDIT THIS FILE. This is a generated file
 * that is synchronized by MyEclipse Hibernate tool integration.
 */
public abstract class AbstractCfgTaskClassMap implements Serializable {
	/**
	 * Eclipse generated
	 */
	private static final long serialVersionUID = 4025617850751643755L;

	/**
	 * The cached hash code value for this instance. Settting to 0 triggers
	 * re-calculation.
	 */
	private int hashValue = 0;

	/** The composite primary key value. */
	private java.lang.Long taskClassMapId;

	/** The value of the simple taskTypeName property. */
	private java.lang.String taskTypeName;

	/** The value of the simple taskClass property. */
	private java.lang.String taskClass;

	/**
	 * Simple constructor of AbstractCfgTaskClassMap instances.
	 */
	public AbstractCfgTaskClassMap() {
	}

	/**
	 * Constructor of AbstractCfgTaskClassMap instances given a simple primary
	 * key.
	 * 
	 * @param taskClassMapId
	 */
	public AbstractCfgTaskClassMap(java.lang.Long taskClassMapId) {
		this.setTaskClassMapId(taskClassMapId);
	}

	/**
	 * Return the simple primary key value that identifies this object.
	 * 
	 * @return java.lang.Long
	 */
	public java.lang.Long getTaskClassMapId() {
		return taskClassMapId;
	}

	/**
	 * Set the simple primary key value that identifies this object.
	 * 
	 * @param taskClassMapId
	 */
	public void setTaskClassMapId(java.lang.Long taskClassMapId) {
		this.hashValue = 0;
		this.taskClassMapId = taskClassMapId;
	}

	/**
	 * Return the value of the TASK_TYPE_NAME column.
	 * 
	 * @return java.lang.String
	 */
	public java.lang.String getTaskTypeName() {
		return this.taskTypeName;
	}

	/**
	 * Set the value of the TASK_TYPE_NAME column.
	 * 
	 * @param taskTypeName
	 */
	public void setTaskTypeName(java.lang.String taskTypeName) {
		this.taskTypeName = taskTypeName;
	}

	/**
	 * Return the value of the TASK_CLASS column.
	 * 
	 * @return java.lang.String
	 */
	public java.lang.String getTaskClass() {
		return this.taskClass;
	}

	/**
	 * Set the value of the TASK_CLASS column.
	 * 
	 * @param taskClass
	 */
	public void setTaskClass(java.lang.String taskClass) {
		this.taskClass = taskClass;
	}

	/**
	 * Implementation of the equals comparison on the basis of equality of the
	 * primary key values.
	 * 
	 * @param rhs
	 * @return boolean
	 */
	public boolean equals(Object rhs) {
		if (rhs == null)
			return false;
		if (!(rhs instanceof CfgTaskClassMap))
			return false;
		CfgTaskClassMap that = (CfgTaskClassMap) rhs;
		if (this.getTaskClassMapId() == null
				|| that.getTaskClassMapId() == null)
			return false;
		return (this.getTaskClassMapId().equals(that.getTaskClassMapId()));
	}

	/**
	 * Implementation of the hashCode method conforming to the Bloch pattern
	 * with the exception of array properties (these are very unlikely primary
	 * key types).
	 * 
	 * @return int
	 */
	public int hashCode() {
		if (this.hashValue == 0) {
			int result = 17;
			int taskClassMapIdValue = this.getTaskClassMapId() == null ? 0
					: this.getTaskClassMapId().hashCode();
			result = result * 37 + taskClassMapIdValue;
			this.hashValue = result;
		}
		return this.hashValue;
	}
}
